package com.examination.system.administration;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiParam;
import lombok.Data;
import lombok.ToString;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * 部门信息管理
 * @author 寇淇芮
 * @Date 2019/9/14 9:24
 *
 */
@Data
@ToString
@Entity
@ApiModel
@Table(name = AdministrationTableName.DEPARTMENT)
@JsonInclude(JsonInclude.Include.NON_NULL)
@GenericGenerator(name = "department-uuid", strategy = "assigned")
public class Department {
    @Id
    @GeneratedValue(generator = "department-uuid")
    @Column(length = 32)
    @ApiModelProperty(value = "标识",example = "department_id" )
    private  String departmentId;

    @ApiModelProperty(value = "部门名",example = "department_name")
    private  String departmentName;

    @ApiModelProperty(value = "员工数量",example = "department_number")
    private  Integer departmentNumber ;

    @ApiModelProperty(value = "领导人",example = "department_leader")
    private  String departmentLeader;

    @ApiModelProperty(value = "联系电话",example = "tele_phone")
    private  String telePhone;

}
